package com.ruoyi.project.mahjong.mapper;

import java.math.BigDecimal;
import java.util.List;
import com.ruoyi.project.mahjong.domain.SendMoney;
import org.apache.ibatis.annotations.Param;

/**
 * 取款记录Mapper接口
 *
 * @author ruoyi
 * @date 2023-12-01
 */
public interface SendMoneyMapper
{
    /**
     * 查询取款记录
     *
     * @param id 取款记录ID
     * @return 取款记录
     */
    public SendMoney selectSendMoneyById(Long id);

    /**
     * 查询取款记录列表
     *
     * @param sendMoney 取款记录
     * @return 取款记录集合
     */
    public List<SendMoney> selectSendMoneyList(SendMoney sendMoney);

    /**
     * 新增取款记录
     *
     * @param sendMoney 取款记录
     * @return 结果
     */
    public int insertSendMoney(SendMoney sendMoney);

    /**
     * 修改取款记录
     *
     * @param sendMoney 取款记录
     * @return 结果
     */
    public int updateSendMoney(SendMoney sendMoney);

    /**
     * 删除取款记录
     *
     * @param id 取款记录ID
     * @return 结果
     */
    public int deleteSendMoneyById(Long id);

    /**
     * 批量删除取款记录
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSendMoneyByIds(Long[] ids);

    BigDecimal countByJbId(@Param("jbid") Long jbid);
}
